//
//  MTWebServiceRequest.h
//  XML Test
//
//  Created by jsheriff on 9/21/11.
//  Copyright 2011 The MITRE Corporation. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    kPending,
    kWaitingForRetry,
    kCompletedWithSuccess,
    kCompletedWithError
} MTWebServiceRequestStatus;

@interface MTWebServiceRequest : NSObject {
    
}

// Properties used by clients
@property (nonatomic, assign) CFUUIDRef uuid;
@property (nonatomic, retain) NSString *url;
@property (nonatomic, retain) NSString *message;
@property (nonatomic, assign) MTWebServiceRequestStatus status;
@property (nonatomic, assign) int attempts;

// Properties used by MTWebServiceClientManager
@property (nonatomic, retain) NSMutableData *receivedData;
@property (nonatomic, retain) NSURLConnection *connection;    
@property (nonatomic, assign) int lastStatusCode;
@property (nonatomic, assign) BOOL retry;

@end
